#include "Shooter_PCH.h"
#include "GLMHelper.h"

/*--------------------------------------------------------------------------*/

std::ostream& operator<<( std::ostream& str, const glm::mat4& _mat4 )
{
	str << "[";

	for (unsigned int i = 0; i < 4; ++i)
	{
		for (unsigned int j = 0; j < 4; ++j)
		{
			str << _mat4[i][j];

			if (j < 3)
			{
				str << " ";
			}
		}

		if (i < 3)
		{
			str << "; ";
		}
	}

	str << "]";

	return str;
}

/*--------------------------------------------------------------------------*/

std::ostream& operator<<( std::ostream& str, const glm::vec2& _vec2 )
{
	str << "[" << _vec2.x << " " << _vec2.y << "]";
	return str;
}

/*--------------------------------------------------------------------------*/

std::ostream& operator<<( std::ostream& str, const glm::vec3& _vec3 )
{
	str << "[" << _vec3.x << " " << _vec3.y << " " << _vec3.z << "]";
	return str;
}

/*--------------------------------------------------------------------------*/

std::ostream& operator<<( std::ostream& str, const glm::vec4& _vec4 )
{
	str << "[" << _vec4.x << " " << _vec4.y << " " << _vec4.z << " " << _vec4.w << "]";
	return str;
}

/*--------------------------------------------------------------------------*/